package com.yuhang.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuhang.demo.dto.request.DrugRelationAddRequest;
import com.yuhang.demo.dto.request.DrugRelationUpdateRequest;
import com.yuhang.demo.dto.response.PageResult;
import com.yuhang.demo.dto.response.Result;
import com.yuhang.demo.entity.RuleDrugRelation;

public interface RuleDrugRelationService extends IService<RuleDrugRelation> {

    Result<Long> addDrugRelation(DrugRelationAddRequest request);

    Result<Boolean> updateDrugRelation(DrugRelationUpdateRequest request);

    Result<Boolean> deleteDrugRelation(Long id);

    Result<PageResult<RuleDrugRelation>> getDrugRelationPage(Long ruleId, Integer pageNum, Integer pageSize);

    void deleteByRuleId(Long ruleId);
}
